package com.wit.witmg.api;


import com.wit.witmg.service.ITProdInputService;
import com.wit.witmg.service.ITProdmaterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author bob
 * @since 2025-01-20
 */
@RestController
@RequestMapping("prodinput")
@Api(tags = "生产入库API")
public class ProdInputController {
    @Resource
    private ITProdInputService service;

    @ApiOperation("添加")
    @PostMapping("add")
    public Object add(HttpServletRequest request,
                      @RequestParam("json") String json,
                      @RequestParam("stat") Integer stat) {
        return service.add(request,json,stat);
    }
}
